Repository navigation
fix(packaging): ship AppStream metainfo so software centres show the licence - #18
Merged
Merged
Conversation
…licence GNOME Software listed the installed .deb under "Unknown License" and without description, age rating or screenshots: it reads all of that from AppStream metainfo, which the package did not carry. The .deb now installs de.codeforfire.freizeichen.metainfo.xml with the MIT licence, a German summary and description, homepage and bug tracker, the tel: handler, an OARS rating, the release and the README screenshots (fetched from the release tag, or main for a dev build). The release workflow validates it with appstreamcli. A .deb opened before installing still shows an unknown licence: PackageKit's apt backend reports "unknown" for every package, whatever it carries. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GNOME Software listed the installed
.debwith Unknown License ("may be proprietary") and showed no age rating and no screenshots. It reads all of that from AppStream metainfo, which the package didn't carry.The
.debnow installs/usr/share/metainfo/de.codeforfire.freizeichen.metainfo.xml, generated inbuild-linux.sh. It carries:project_licenseMIT, plus a German summary and descriptionx-scheme-handler/telit handlesThe id is the reverse-DNS name the macOS bundle already uses, and
<launchable>ties it tofreizeichen.desktop. The screenshots are fetched from the release tag, so each version shows its own, or frommainfor a dev build. The release workflow validates the file withappstreamcli validate.What this can't fix: a
.debopened in GNOME Software before installing it still shows an unknown licence and size. GNOME Software gets those from PackageKit, whose apt backend hard-codes"unknown"as the licence for every package (backends/apt/apt-job.cpp,emitPackageDetail). No package content changes that.Independent of #17 (the app icon). Both touch
build-linux.shandrelease.yml, so whichever merges second needs a small rebase.Before / after (installed app in GNOME Software)
The after shot predates the screenshots; they were added afterwards.
appstreamcli validatepasses on the generated file, both offline and with network checks, and zizmor reports nothing.🤖 Generated with Claude Code